import request from "@/utils/request";

/**
 * 分页获取评论举报
 * @returns {AxiosPromise}
 */
export function page(param) {
    return request({
        url: '/comment-report/page',
        method: 'get',
        params: param
    })
}

/**
 * 评论举报详情
 * @returns {AxiosPromise}
 */
export function detail(uuid) {
    return request({
        url: '/comment-report/detail/' + uuid,
        method: 'get',
    })
}

/**
 * 处理存在违规
 * @returns {AxiosPromise}
 */
export function disposeExistsViolation(param, uuid) {
    return request({
        url: '/comment-report/dispose-exists-violation/' + uuid,
        method: 'put',
        data: param
    })
}

/**
 * 处理不存在违规
 * @returns {AxiosPromise}
 */
export function disposeNoExistsViolation(param, uuid) {
    return request({
        url: '/comment-report/dispose-no-exists-violation/' + uuid,
        method: 'put',
        data: param
    })
}
